﻿<Window x:Class="PDOGenerator.Dialogs.GenerateDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ORM Generate" Width="300" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" 
        IsEnabled="True" ResizeMode="NoResize"  Background="Gainsboro" VerticalAlignment="Center" SizeToContent="Height">
   
    <DockPanel Background="White" LastChildFill="True" Height="Auto">
        <StackPanel DockPanel.Dock="Top" Grid.Row="0" Margin="9,9,9,20">
            <StackPanel.Resources>
                <Style TargetType="TextBlock" >
                    <Setter Property="Margin" Value="2,2,2,2" />
                </Style>
                <Style TargetType="CheckBox" >
                    <Setter Property="Margin" Value="2,4,2,2" />
                </Style>
            </StackPanel.Resources>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Target Azure:"/>
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=TargetAzure}"  />
            </Grid>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Generate Class Files:"/>
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=GenerateClassFiles}"  />
            </Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Generate Table Creates:" />
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=GenerateTableCreateScripts}"  />
            </Grid>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Generate Table Drop:" />
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=GenerateTableDropScripts}"  />
            </Grid>
            
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Generate Data Inserts:" />
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=GenerateDataInsertScripts}"  />
            </Grid>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Generate CRUD Scripts:"/>
                <CheckBox Grid.Column="1" IsChecked="{Binding Path=GenerateProcScripts}"  />
            </Grid>
        </StackPanel>

        <StackPanel DockPanel.Dock="Bottom" Grid.Row="1" Background="Gainsboro" Height="40" >
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center"  >
                <Button Margin="9" Name="_okBtn" Click="_okBtn_Click" Width="75" IsDefault="True">OK</Button>
                <Button Margin="9" Name="_cancelBtn" Click="_cancelBtn_Click" Width="75" >Cancel</Button>
            </StackPanel>
        </StackPanel>
    </DockPanel>

</Window>
